<?php 
class Page extends AppModel {
	var $name='Page';
	var $pageTable='pages';
	
	public function getPage($page){
		$query = "SELECT title, content 
			FROM `{$this->pageTable}`
			WHERE `page`='$page'";
		$result = $this->query($query);

		debug( $result );
		
		return $result;
		
	}
}

?>